const mongoose = require("../db");
const Schema = mongoose.Schema;
const schema = new Schema({
    userid: { type: String },
    addressid: { type: String },
    name: { type: String },
    tel: { type: String },
    areaCode: { type: String },
    country: { type: String },
    province: { type: String },
    city: { type: String },
    county: { type: String },
    addressDetail: { type: String },
    isDefault: { type: Boolean },
    time: { type: String }
});
const collection = mongoose.model("Address", schema);
module.exports = collection;
